#include "shm.hpp"
#include "fifo.hpp"

int main()
{
    FifoOper fifoOper(".","myFifo");
    fifoOper.OpenWithWrite();
    Shm s(PATH_NAME,PROJ_ID,USER);
    char* mem = (char*)s.vrittalAddr();
    int index = 0;
    for(char c = 'A';c<='Z';c++,index+=2)
    {
        mem[index] = c;
        sleep(1);
        mem[index+1] = c;
        sleep(1);
        fifoOper.Write();
        sleep(1);
    }
    fifoOper.Close();
    return 0;
}